import axios from "@/common/axios";
import { API_URL } from "@/common/constants";

export const queryStandardStatusList = async (json) => {
  let { data } = await axios.post(API_URL + "rStandardStatusApi/queryStandardStatusList", json);
  return data;
};



export const updateStandardStatus = async (json) => {
  let { data } = await axios.post(API_URL + "rStandardStatusApi/updateStandardStatus", json);
  return data;
};


export const addStandardStatus = async (json) => {
  let { data } = await axios.post(API_URL + "rStandardStatusApi/addStandardStatus", json);
  return data;
};



export const delStandardStatus = async (json) => {
  let { data } = await axios.post(API_URL + "rStandardStatusApi/delStandardStatus", json);
  return data;
};


export const importExcel = async (formData) => {
  let { data } = await axios.post(API_URL + "rStandardStatusApi/importExcel", formData, {
    headers: {
      'Content-Type': 'multipart/form-data;charset=utf-8'
    }
  });
  return data;

}